package com.cf.game.gate.core;

import com.cf.user.login.model.UserInfo;
import io.vertx.core.http.ServerWebSocket;
import io.vertx.core.http.WebSocket;

/**
 * boot-awm-UserWrapper
 *
 * @author <a href="2428922347@qq.com">Zhu mingming</a>
 * @info
 * @since 2018/6/27 下午 02:35
 */
public class UserWrapper {

    /**
     * 用户信息
     */
    private UserInfo userInfo;

    /**
     * 通信
     */
    private ServerWebSocket webSocket;

    /**
     * 最后活跃的时间
     */
    private long lastActiveTime;

    public UserWrapper(UserInfo userInfo, ServerWebSocket webSocket, long lastActiveTime) {
        this.userInfo = userInfo;
        this.webSocket = webSocket;
        this.lastActiveTime = lastActiveTime;
    }

    public UserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }

    public ServerWebSocket getWebSocket() {
        return webSocket;
    }

    public void setWebSocket(ServerWebSocket webSocket) {
        this.webSocket = webSocket;
    }

    public long getLastActiveTime() {
        return lastActiveTime;
    }

    public void setLastActiveTime(long lastActiveTime) {
        this.lastActiveTime = lastActiveTime;
    }
}
